import axios from 'axios';

// axios的实例
const instance = axios.create({
  baseURL: 'http://1.14.239.98/backend/api/v1/',
  timeout: 10000,
});
// 请求拦截器
instance.interceptors.request.use((config) => config, (error) => Promise.reject(error));

// 响应拦截器
instance.interceptors.response.use((response) => response.data, (error) => Promise.reject(error));

export default instance;
